#include "game-init.h"
#include "mgr.h"
#include "utils.h"
#include <Windows.h>

void game_init() {
  MessageBox(0, L"等待游戏启动后点击确定", L"", MB_OK | MB_ICONINFORMATION);

  // auto window = get_main_wnd(L"GxWindowClass");
  auto window = get_main_wnd(L"waApplication Window");
  auto pid = GetCurrentProcessId();
  auto base = get_module_base(pid).value_or(0);
  Mgr::get()->init(pid, window, base);
}
